package com.rc.saas.mini.mapper.rc;

import com.rc.saas.mini.common.base.BaseMapper;
import com.rc.saas.mini.model.member.MemberAccount;
import com.rc.saas.mini.model.rc.RcMemberLevelSetting;
import com.rc.saas.mini.model.rc.RcMemberLevelSettingExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface RcMemberLevelSettingMapper extends BaseMapper<String, RcMemberLevelSetting, RcMemberLevelSettingExample> {
    /**
     * 金额最大情况下的会员权益
     * @param amount
     * @return
     */
    RcMemberLevelSetting selectByMemberAccount(@Param("amount")BigDecimal amount);

    RcMemberLevelSetting selectByNext(@Param("memberId")Long memberId);

    List<RcMemberLevelSetting> listByDefault();
}
